<?xml version="1.0" encoding="ISO-8859-1"?>
<%@ page contentType="text/xml;charset=UTF-8" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="javax.jdo.PersistenceManager" %>
<%@ page import="appnode.Node" %>
<%@ page import="appnode.RateUtils" %>
<%@ page import="appnode.SearchNode" %>
<%@ page import="appnode.Link" %>
<%@ page import="appnode.Interface" %>
<%@ page import="appnode.NodeRating" %>
<%@ page import="appnode.PMF" %>
<%@ page import="com.google.appengine.api.datastore.Key"%>
<%@ page import="com.google.appengine.api.datastore.KeyFactory;"%>


<jsp:useBean id="xml" class="appnode.Genmapxml"/>

<%
	String choice =request.getParameter("choice");
	String nodename=request.getParameter("nodename");
	String rate=request.getParameter("rate");
	List <Node> node = SearchNode.getMapNodes(nodename,choice,rate);
%>
<table>
	<%
	for (int i=0;i<node.size();i++) {		
	%>
	<node>
		<name><%= node.get(i).getNodename() %></name>
		<owner><%= node.get(i).getOwner()%></owner>
		<lat><%= node.get(i).getLat() %></lat>
		<lng><%= node.get(i).getLng() %></lng>	
	</node>
	<%
	} // end for
	%>
</table>

